import request from '@/utils/request'

// 获取部门列表
export const getDepartmentList = () => {
  return request.get('/api/departments')
}


// 获取留言列表
export const getMessageList = (params) => {
  return request.get('/api/messages', { params })
}

// 删除留言
export const deleteMessageApi = (id) => {
  return request.delete(`/api/messages/${id}`)
}  